package dudghk;

public class J01Account {
	public static void main(String[] args){
		
        int aid = 0;
	    int balance = 0;
	    double interestRate = 0;
		
	    
		System.out.println("초기값");
		System.out.println( aid);	
		System.out.println(balance);
		System.out.println(interestRate);
		
		 aid = 1122;
		 balance = 20000;
		 interestRate = 4.5;
		String dateCreated = "/";
		int deposit = 3000;   
		int withDraw =2500;
		
		
		 double getMonthlyInterestRate = interestRate/12;
		 balance = balance+deposit ; 
		

		 //계좌번호
		 System.out.println("계좌번호:");
		 System.out.println(aid);
	
		 
		 //통장 잔액
		 System.out.println("통장잔액");
		 System.out.println(balance);
		 
		 //월간이자를 계산하기
		
		System.out.println("월간이자율");
		System.out.println( getMonthlyInterestRate);	
		
		balance = balance - withDraw;
		//통장 인출
		System.out.println("통장인출");
		System.out.println( withDraw);	
		System.out.println("통장인출 후 통장잔액 ");
		System.out.println( balance);	

		//통장개설날짜
		System.out.println("통장개설날짜");	
		System.out.println( dateCreated);	
		
		balance = balance+deposit ;
		//통장 예금
		System.out.println("통장예금액");	
		System.out.println( deposit);	
		System.out.println("통장예금을 예금한후의 통장 잔액");	
		System.out.println( balance);	
		
		
	}

}
